﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using GanoESB;

namespace API
{
    [ServiceContract]
    public interface IService2
    {
        [OperationContract]
        string SayHello2(string name);
    }

    public class SayHello2Message : IMessage
    {
        public string Name { get; set; }

        #region IMessage 成员

        public string Scope
        {
            get { return "Service2"; }
        }

        public object[] GetArguments()
        {
            return new object[] { Name };
        }

        #endregion
    }

    //public class Service2Home : IService2
    //{
    //    #region IService2 成员

    //    public string DoMethod(string name)
    //    {
    //        throw new NotImplementedException();
    //    }

    //    #endregion
    //}
}
